package com.lge.simpleeventhandler.modelinfoboard;

import javax.swing.table.DefaultTableModel;

public class ScheduleTableModel extends DefaultTableModel {
    // Constructors
    public ScheduleTableModel(Object[] columnNames, int rowCount) {
        super(columnNames, rowCount);
    }

    @Override
    public boolean isCellEditable(int row, int column) {
        return true;
    }

    @Override
    public Class getColumnClass(int columnIndex) {
        switch (columnIndex) {
        case 0: case 1: case 2: case 4: case 6: case 7:
            return String.class;
        case 3: case 5:
            return Boolean.class;
        default:
            return String.class;
        }
    }
}